package c.e.b.h;

import c.e.b.g.f;
import com.google.firebase.crashlytics.CrashlyticsRegistrar;

/* compiled from: CrashlyticsRegistrar */
public final /* synthetic */ class b implements f {
    public final CrashlyticsRegistrar a;

    public b(CrashlyticsRegistrar crashlyticsRegistrar) {
        this.a = crashlyticsRegistrar;
    }

    /* JADX WARNING: Removed duplicated region for block: B:70:0x03bf  */
    /* JADX WARNING: Removed duplicated region for block: B:37:0x0275  */
    /* JADX WARNING: Removed duplicated region for block: B:66:0x0386  */
    public java.lang.Object a(c.e.b.g.e r46) {
        /*
        r45 = this;
        r1 = r45;
        r0 = r1.a;
        java.util.Objects.requireNonNull(r0);
        r0 = c.e.b.c.class;
        r2 = r46;
        r2 = (c.e.b.g.v) r2;
        r0 = r2.a(r0);
        r11 = r0;
        r11 = (c.e.b.c) r11;
        r0 = c.e.b.h.e.a.class;
        r0 = r2.a(r0);
        r0 = (c.e.b.h.e.a) r0;
        r3 = c.e.b.f.a.a.class;
        r3 = r2.a(r3);
        r3 = (c.e.b.f.a.a) r3;
        r4 = c.e.b.m.e.class;
        r2 = r2.a(r4);
        r2 = (c.e.b.m.e) r2;
        r12 = "0.0";
        r13 = "FirebaseCrashlytics";
        r14 = c.e.b.h.e.b.a;
        r11.a();
        r15 = r11.a;
        r4 = r15.getPackageName();
        r5 = new c.e.b.h.e.k.q0;
        r5.m6084init(r15, r4, r2);
        r7 = new c.e.b.h.e.k.l0;
        r7.m1727init(r11);
        if (r0 != 0) goto L_0x004c;
    L_0x0047:
        r0 = new c.e.b.h.e.c;
        r0.m6065init();
    L_0x004c:
        r6 = r0;
        r2 = new c.e.b.h.e.h;
        r2.m1697init(r11, r15, r5, r7);
        if (r3 == 0) goto L_0x00a5;
    L_0x0054:
        r0 = "Firebase Analytics is available.";
        r14.b(r0);
        r0 = new c.e.b.h.e.i.e;
        r0.m6071init(r3);
        r4 = new c.e.b.h.a;
        r4.m6061init();
        r8 = "clx";
        r8 = r3.a(r8, r4);
        if (r8 != 0) goto L_0x007d;
    L_0x006b:
        r8 = "Could not register AnalyticsConnectorListener with Crashlytics origin.";
        r14.b(r8);
        r8 = "crash";
        r8 = r3.a(r8, r4);
        if (r8 == 0) goto L_0x007d;
    L_0x0078:
        r3 = "A new version of the Google Analytics for Firebase SDK is now available. For improved performance and compatibility with Crashlytics, please update to the latest version.";
        r14.f(r3);
    L_0x007d:
        if (r8 == 0) goto L_0x0098;
    L_0x007f:
        r3 = "Firebase Analytics listener registered successfully.";
        r14.b(r3);
        r3 = new c.e.b.h.e.i.d;
        r3.m6070init();
        r8 = new c.e.b.h.e.i.c;
        r9 = 500; // 0x1f4 float:7.0E-43 double:2.47E-321;
        r10 = java.util.concurrent.TimeUnit.MILLISECONDS;
        r8.m6069init(r0, r9, r10);
        r4.b = r3;
        r4.a = r8;
        r0 = r8;
        goto L_0x00a2;
    L_0x0098:
        r3 = "Firebase Analytics listener registration failed.";
        r14.b(r3);
        r3 = new c.e.b.h.e.j.b;
        r3.m6073init();
    L_0x00a2:
        r9 = r0;
        r8 = r3;
        goto L_0x00b6;
    L_0x00a5:
        r0 = "Firebase Analytics is unavailable.";
        r14.b(r0);
        r0 = new c.e.b.h.e.j.b;
        r0.m6073init();
        r3 = new c.e.b.h.e.i.f;
        r3.m6072init();
        r8 = r0;
        r9 = r3;
    L_0x00b6:
        r0 = "Crashlytics Exception Handler";
        r10 = c.e.a.c.a.a(r0);
        r4 = new c.e.b.h.e.k.f0;
        r3 = r4;
        r1 = r4;
        r4 = r11;
        r3.m1711init(r4, r5, r6, r7, r8, r9, r10);
        r3 = 6;
        r0 = 0;
        r4 = r2.l;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r4.c();	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.i = r4;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r2.c;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r4.getPackageManager();	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.d = r4;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r2.c;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r4.getPackageName();	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.e = r4;	 Catch:{ NameNotFoundException -> 0x0119 }
        r5 = r2.d;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r5.getPackageInfo(r4, r0);	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.f = r0;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.versionCode;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = java.lang.Integer.toString(r0);	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.g = r0;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r2.f;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.versionName;	 Catch:{ NameNotFoundException -> 0x0119 }
        if (r0 != 0) goto L_0x00f5;
    L_0x00f4:
        r0 = r12;
    L_0x00f5:
        r2.h = r0;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r2.d;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r2.c;	 Catch:{ NameNotFoundException -> 0x0119 }
        r4 = r4.getApplicationInfo();	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.getApplicationLabel(r4);	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.toString();	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.j = r0;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r2.c;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.getApplicationInfo();	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = r0.targetSdkVersion;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = java.lang.Integer.toString(r0);	 Catch:{ NameNotFoundException -> 0x0119 }
        r2.k = r0;	 Catch:{ NameNotFoundException -> 0x0119 }
        r0 = 1;
        goto L_0x0126;
    L_0x0119:
        r0 = move-exception;
        r3 = r14.a(r3);
        if (r3 == 0) goto L_0x0125;
    L_0x0120:
        r3 = "Failed init";
        android.util.Log.e(r13, r3, r0);
    L_0x0125:
        r0 = 0;
    L_0x0126:
        if (r0 != 0) goto L_0x0130;
    L_0x0128:
        r0 = "Unable to start Crashlytics.";
        r14.d(r0);
        r0 = 0;
        goto L_0x03be;
    L_0x0130:
        r0 = "com.google.firebase.crashlytics.startup";
        r3 = c.e.a.c.a.a(r0);
        r11.a();
        r0 = r11.c;
        r0 = r0.b;
        r4 = r2.l;
        r5 = r2.a;
        r6 = r2.g;
        r7 = r2.h;
        r8 = r2.c();
        r9 = r2.m;
        r10 = r4.c();
        r11 = new c.e.b.h.e.k.x0;
        r11.m1756init();
        r46 = r12;
        r12 = new c.e.b.h.e.s.f;
        r12.m1837init(r11);
        r26 = r13;
        r13 = new c.e.b.h.e.s.a;
        r13.m1834init(r15);
        r27 = r14;
        r14 = java.util.Locale.US;
        r28 = r1;
        r1 = 1;
        r1 = new java.lang.Object[r1];
        r16 = 0;
        r1[r16] = r0;
        r29 = r2;
        r2 = "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings";
        r1 = java.lang.String.format(r14, r2, r1);
        r2 = new c.e.b.h.e.s.j.c;
        r2.m6163init(r8, r1, r5);
        r1 = 2;
        r5 = new java.lang.Object[r1];
        r8 = android.os.Build.MANUFACTURER;
        r8 = r4.e(r8);
        r5[r16] = r8;
        r8 = android.os.Build.MODEL;
        r8 = r4.e(r8);
        r16 = 1;
        r5[r16] = r8;
        r8 = "%s/%s";
        r18 = java.lang.String.format(r14, r8, r5);
        r5 = android.os.Build.VERSION.INCREMENTAL;
        r19 = r4.e(r5);
        r5 = android.os.Build.VERSION.RELEASE;
        r20 = r4.e(r5);
        r5 = 4;
        r8 = new java.lang.String[r5];
        r14 = c.e.b.h.e.k.g.k(r15);
        r17 = 0;
        r8[r17] = r14;
        r8[r16] = r0;
        r8[r1] = r7;
        r1 = 3;
        r8[r1] = r6;
        r22 = c.e.b.h.e.k.g.e(r8);
        r1 = c.e.b.h.e.k.n0.a(r10);
        r1 = r1.a;
        r8 = new c.e.b.h.e.s.i.g;
        r16 = r8;
        r17 = r0;
        r21 = r4;
        r23 = r7;
        r24 = r6;
        r25 = r1;
        r16.m1843init(r17, r18, r19, r20, r21, r22, r23, r24, r25);
        r1 = new c.e.b.h.e.s.d;
        r4 = r15;
        r15 = r1;
        r16 = r4;
        r17 = r8;
        r18 = r11;
        r19 = r12;
        r20 = r13;
        r21 = r2;
        r22 = r9;
        r15.m6159init(r16, r17, r18, r19, r20, r21, r22);
        r0 = c.e.b.h.e.s.c.USE_CACHE;
        r0 = r1.d(r0, r3);
        r2 = new c.e.b.h.e.g;
        r4 = r29;
        r2.m6068init(r4);
        r0.e(r3, r2);
        r2 = r28;
        r0 = r2.a;
        r8 = c.e.b.h.e.k.g.k(r0);
        r0 = "Mapping file ID is: ";
        r13 = r27;
        c.b.a.a.a.u(r0, r8, r13);
        r0 = r2.a;
        r6 = "com.crashlytics.RequireBuildId";
        r7 = 1;
        r0 = c.e.b.h.e.k.g.i(r0, r6, r7);
        r6 = "The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account.";
        if (r0 != 0) goto L_0x0217;
    L_0x0211:
        r0 = "Configured not to require a build ID.";
        r13.b(r0);
        goto L_0x021d;
    L_0x0217:
        r0 = c.e.b.h.e.k.g.r(r8);
        if (r0 != 0) goto L_0x0221;
    L_0x021d:
        r0 = 1;
        r14 = r26;
        goto L_0x0273;
    L_0x0221:
        r0 = ".";
        r14 = r26;
        android.util.Log.e(r14, r0);
        r7 = ".     |  | ";
        android.util.Log.e(r14, r7);
        r7 = ".     |  |";
        android.util.Log.e(r14, r7);
        android.util.Log.e(r14, r7);
        r9 = ".   \\ |  | /";
        android.util.Log.e(r14, r9);
        r9 = ".    \\    /";
        android.util.Log.e(r14, r9);
        r9 = ".     \\  /";
        android.util.Log.e(r14, r9);
        r9 = ".      \\/";
        android.util.Log.e(r14, r9);
        android.util.Log.e(r14, r0);
        android.util.Log.e(r14, r6);
        android.util.Log.e(r14, r0);
        r9 = ".      /\\";
        android.util.Log.e(r14, r9);
        r9 = ".     /  \\";
        android.util.Log.e(r14, r9);
        r9 = ".    /    \\";
        android.util.Log.e(r14, r9);
        r9 = ".   / |  | \\";
        android.util.Log.e(r14, r9);
        android.util.Log.e(r14, r7);
        android.util.Log.e(r14, r7);
        android.util.Log.e(r14, r7);
        android.util.Log.e(r14, r0);
        r0 = 0;
    L_0x0273:
        if (r0 == 0) goto L_0x03bf;
    L_0x0275:
        r0 = r2.b;
        r0.a();
        r0 = r0.c;
        r7 = r0.b;
        r0 = "Initializing Crashlytics 17.2.2";
        r5 = r13.a(r5);	 Catch:{ Exception -> 0x037c }
        if (r5 == 0) goto L_0x028a;
    L_0x0286:
        r5 = 0;
        android.util.Log.i(r14, r0, r5);	 Catch:{ Exception -> 0x037c }
    L_0x028a:
        r0 = new c.e.b.h.e.o.h;	 Catch:{ Exception -> 0x037c }
        r5 = r2.a;	 Catch:{ Exception -> 0x037c }
        r0.m1817init(r5);	 Catch:{ Exception -> 0x037c }
        r6 = new c.e.b.h.e.k.h0;	 Catch:{ Exception -> 0x037c }
        r9 = "crash_marker";
        r6.m1720init(r9, r0);	 Catch:{ Exception -> 0x037c }
        r2.f = r6;	 Catch:{ Exception -> 0x037c }
        r6 = new c.e.b.h.e.k.h0;	 Catch:{ Exception -> 0x037c }
        r9 = "initialization_marker";
        r6.m1720init(r9, r0);	 Catch:{ Exception -> 0x037c }
        r2.e = r6;	 Catch:{ Exception -> 0x037c }
        r33 = new c.e.b.h.e.n.c;	 Catch:{ Exception -> 0x037c }
        r33.m1803init();	 Catch:{ Exception -> 0x037c }
        r6 = r2.h;	 Catch:{ Exception -> 0x037c }
        r10 = r5.getPackageName();	 Catch:{ Exception -> 0x037c }
        r9 = r6.c();	 Catch:{ Exception -> 0x037c }
        r5 = r5.getPackageManager();	 Catch:{ Exception -> 0x037c }
        r6 = 0;
        r5 = r5.getPackageInfo(r10, r6);	 Catch:{ Exception -> 0x037c }
        r6 = r5.versionCode;	 Catch:{ Exception -> 0x037c }
        r11 = java.lang.Integer.toString(r6);	 Catch:{ Exception -> 0x037c }
        r5 = r5.versionName;	 Catch:{ Exception -> 0x037c }
        if (r5 != 0) goto L_0x02c8;
    L_0x02c5:
        r12 = r46;
        goto L_0x02c9;
    L_0x02c8:
        r12 = r5;
    L_0x02c9:
        r5 = new c.e.b.h.e.k.b;	 Catch:{ Exception -> 0x037c }
        r6 = r5;
        r6.m1703init(r7, r8, r9, r10, r11, r12);	 Catch:{ Exception -> 0x037c }
        r6 = new c.e.b.h.e.u.a;	 Catch:{ Exception -> 0x037c }
        r7 = r2.a;	 Catch:{ Exception -> 0x037c }
        r6.m1845init(r7);	 Catch:{ Exception -> 0x037c }
        r7 = new java.lang.StringBuilder;	 Catch:{ Exception -> 0x037c }
        r7.<init>();	 Catch:{ Exception -> 0x037c }
        r8 = "Installer package name is: ";
        r7.append(r8);	 Catch:{ Exception -> 0x037c }
        r8 = r5.c;	 Catch:{ Exception -> 0x037c }
        r7.append(r8);	 Catch:{ Exception -> 0x037c }
        r7 = r7.toString();	 Catch:{ Exception -> 0x037c }
        r13.b(r7);	 Catch:{ Exception -> 0x037c }
        r7 = new c.e.b.h.e.k.t;	 Catch:{ Exception -> 0x037c }
        r8 = r2.a;	 Catch:{ Exception -> 0x037c }
        r9 = r2.l;	 Catch:{ Exception -> 0x037c }
        r10 = r2.h;	 Catch:{ Exception -> 0x037c }
        r11 = r2.c;	 Catch:{ Exception -> 0x037c }
        r12 = r2.f;	 Catch:{ Exception -> 0x037c }
        r39 = 0;
        r40 = 0;
        r15 = r2.m;	 Catch:{ Exception -> 0x037c }
        r46 = r3;
        r3 = r2.j;	 Catch:{ Exception -> 0x037a }
        r30 = r7;
        r31 = r8;
        r32 = r9;
        r34 = r10;
        r35 = r11;
        r36 = r0;
        r37 = r12;
        r38 = r5;
        r41 = r15;
        r42 = r6;
        r43 = r3;
        r44 = r1;
        r30.m1752init(r31, r32, r33, r34, r35, r36, r37, r38, r39, r40, r41, r42, r43, r44);	 Catch:{ Exception -> 0x037a }
        r2.g = r7;	 Catch:{ Exception -> 0x037a }
        r0 = r2.e;	 Catch:{ Exception -> 0x037a }
        r0 = r0.b();	 Catch:{ Exception -> 0x037a }
        r0 = r0.exists();	 Catch:{ Exception -> 0x037a }
        r3 = r2.l;	 Catch:{ Exception -> 0x037a }
        r5 = new c.e.b.h.e.k.g0;	 Catch:{ Exception -> 0x037a }
        r5.m1717init(r2);	 Catch:{ Exception -> 0x037a }
        r3 = r3.b(r5);	 Catch:{ Exception -> 0x037a }
        r3 = c.e.b.h.e.k.a1.a(r3);	 Catch:{ Exception -> 0x033f }
        r3 = (java.lang.Boolean) r3;	 Catch:{ Exception -> 0x033f }
        r5 = java.lang.Boolean.TRUE;	 Catch:{ Exception -> 0x037a }
        r5.equals(r3);	 Catch:{ Exception -> 0x037a }
    L_0x033f:
        r3 = r2.g;	 Catch:{ Exception -> 0x037a }
        r5 = java.lang.Thread.getDefaultUncaughtExceptionHandler();	 Catch:{ Exception -> 0x037a }
        r6 = r3.e;	 Catch:{ Exception -> 0x037a }
        r7 = new c.e.b.h.e.k.n;	 Catch:{ Exception -> 0x037a }
        r7.m1735init(r3);	 Catch:{ Exception -> 0x037a }
        r6.b(r7);	 Catch:{ Exception -> 0x037a }
        r6 = new c.e.b.h.e.k.w;	 Catch:{ Exception -> 0x037a }
        r6.m6096init(r3);	 Catch:{ Exception -> 0x037a }
        r7 = new c.e.b.h.e.k.k0;	 Catch:{ Exception -> 0x037a }
        r7.m1726init(r6, r1, r5);	 Catch:{ Exception -> 0x037a }
        r3.t = r7;	 Catch:{ Exception -> 0x037a }
        java.lang.Thread.setDefaultUncaughtExceptionHandler(r7);	 Catch:{ Exception -> 0x037a }
        if (r0 == 0) goto L_0x0371;
    L_0x0360:
        r0 = r2.a;	 Catch:{ Exception -> 0x037a }
        r0 = c.e.b.h.e.k.g.b(r0);	 Catch:{ Exception -> 0x037a }
        if (r0 == 0) goto L_0x0371;
    L_0x0368:
        r0 = "Crashlytics did not finish previous background initialization. Initializing synchronously.";
        r13.b(r0);	 Catch:{ Exception -> 0x037a }
        r2.b(r1);	 Catch:{ Exception -> 0x037a }
        goto L_0x038e;
    L_0x0371:
        r0 = "Exception handling initialization successful";
        r13.b(r0);
        r0 = 1;
        r20 = 1;
        goto L_0x0391;
    L_0x037a:
        r0 = move-exception;
        goto L_0x037f;
    L_0x037c:
        r0 = move-exception;
        r46 = r3;
    L_0x037f:
        r3 = 6;
        r3 = r13.a(r3);
        if (r3 == 0) goto L_0x038b;
    L_0x0386:
        r3 = "Crashlytics was not started due to an exception during initialization";
        android.util.Log.e(r14, r3, r0);
    L_0x038b:
        r0 = 0;
        r2.g = r0;
    L_0x038e:
        r0 = 0;
        r20 = 0;
    L_0x0391:
        r0 = new c.e.b.h.c;
        r16 = r0;
        r17 = r4;
        r18 = r46;
        r19 = r1;
        r21 = r2;
        r16.m1693init(r17, r18, r19, r20, r21);
        r1 = "Executor must not be null";
        r3 = r46;
        b.i.b.f.S(r3, r1);
        r1 = "Callback must not be null";
        b.i.b.f.S(r0, r1);
        r1 = new c.e.a.b.g.a0;
        r1.m5971init();
        r4 = new c.e.a.b.g.b0;
        r4.m1531init(r1, r0);
        r3.execute(r4);
        r0 = new c.e.b.h.d;
        r0.m1694init(r2);
    L_0x03be:
        return r0;
    L_0x03bf:
        r0 = new java.lang.IllegalStateException;
        r0.<init>(r6);
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.b.h.b.a(c.e.b.g.e):java.lang.Object");
    }
}
